package com.panshi.api;

import com.panshi.po.Shox;
import com.panshi.vo.HomeQueryVO;
import com.panshi.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Set;

@FeignClient(name="hasbei-search",path = "home-api")
@Component
@Api(tags = "首页查询接口")
public interface HomeApi {

    @PostMapping("/initHome")
    @ApiOperation("初始化首页")
    Result<Set<Shox>> initHome(@RequestBody HomeQueryVO homeQueryVO);
}
